package multiThreaded;

import java.net.URL;

import net.htmlparser.jericho.Source;

/**
 * Web page buffer for the web spider.
 * @author DoubleS
 * @version 1.0
 */
public class WebPage
{
  /**
   * The source code (in HTML) of this object.
   */
  private Source my_source;
  
  /**
   * The url.
   */
  private URL my_url;
  
  /**
   * Construct the WebPage object with the input source and url.
   * @param the_source The source of this page.
   * @param the_url The url.
   */
  public WebPage(final Source the_source, final URL the_url)
  {
    my_source = the_source;
    my_url = the_url;
  }
  
  /**
   * 
   * @return The source of this web page.
   */
  public Source getSource()
  {
    return my_source;
  }
  
  /**
   * 
   * @return The url of this web page.
   */
  public URL getURL()
  {
    return my_url;
  }
}
